www.gusucode.com > VC++ 高仿QQ2008好友界面源码程序 > VC++ 高仿QQ2008好友界面源码程序/code/MyICQ/MainTabCtrl.cpp

    // MainTabCtrl.cpp: implementation of the CMainTabCtrl class.
// Download by http://www.NewXing.com
//////////////////////////////////////////////////////////////////////

#include "stdafx.h"
#include "MyICQ.h"
#include "MainTabCtrl.h"

#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif

//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////

CMainTabCtrl::CMainTabCtrl()
{

}

CMainTabCtrl::~CMainTabCtrl()
{

}
BEGIN_MESSAGE_MAP(CMainTabCtrl,CWnd)
//AFX_MSG_MAP{{
ON_WM_PAINT()
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
//////////////////////////////////////////////////////////////////////////
BOOL CMainTabCtrl::Create(DWORD dwStyle,const RECT &rect,CWnd* pParentWnd,UINT nID)
{
	return CWnd::CreateEx(NULL,NULL,NULL,dwStyle|WS_CHILD|WS_VISIBLE,rect,pParentWnd,nID);
}
void CMainTabCtrl::OnPaint()
{
	CPaintDC dc(this);
	dc.FillSolidRect(CRect(0,0,100,100),RGB(255,255,0));
}